.top {
    margin-top: 20px;

    .top-op {
        display: flex;
        align-items: center;

        .btn {
            margin-right: 10px;
        }

        .search-panel {
            margin-left: 10px;
            width: 300px;
        }

        .icon-refresh {
            cursor: pointer;
            margin-left: 10px;
        }

        .not-allow {
            background: #d2d2d2 !important;
            cursor: not-allowed;
        }
    }
}

.file-list {
    .file-item {
        display: flex;
        align-items: center;
        padding: 6px 0px;

        .file-name {
            margin-left: 8px;
            flex: 1;
            width: auto;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            padding: 2px 0;
            box-sizing: border-box;

            span {
                cursor: pointer;

                &:hover {
                    color: #06a7ff;
                }
            }

            .transfer-status {
                font-size: 13px;
                margin-left: 10px;
                color: #e6a23c;
            }

            .transfer-fail {
                color: #f75000;
            }
        }
    }
}

.edit-panel {
    flex: 1;
    width: 0;
    display: flex;
    align-items: center;
    margin: 0px 5px;

    .iconfont {
        margin-left: 10px;
        background: #0c95f7;
        color: #fff;
        padding: 3px 5px;
        border-radius: 5px;
        cursor: pointer;
    }

    .not-allow {
        cursor: not-allowed;
        background: #7cb1d7;
        color: #ddd;
        text-decoration: none;
    }
}

.op {
    width: 280px;
    margin-left: 15px;

    .iconfont {
        font-size: 13px;
        margin-left: 10px;
        color: #06a7ff;
        cursor: pointer;

        &::before {
            margin-right: 3px;
        }
    }
}

// 统一的文件列表相关样式
.main-content {
    height: 100%;
    overflow: auto;
}

.file-list {
    margin-top: 20px;

    .file-name-cell {
        display: flex;
        align-items: center;
        gap: 10px;

        .file-icon {
            width: 32px;
            height: 32px;
            flex-shrink: 0;
        }

        .file-thumbnail {
            width: 100%;
            height: 100%;
            object-fit: cover;
            border-radius: 4px;
        }

        .file-name {
            flex: 1;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
            color: #409EFF;
            cursor: pointer;

            &:hover {
                text-decoration: underline;
            }
        }
    }

    .file-actions {
        display: flex;
        gap: 8px;

        .action-icon {
            color: #409EFF;
            cursor: pointer;
            font-size: 16px;
            padding: 4px;
            border-radius: 4px;
            transition: all 0.3s;

            &:hover {
                background-color: #f0f8ff;
                transform: scale(1.1);
            }
        }
    }

    :deep(.el-table) {
        .el-table__row {
            cursor: pointer;

            &:hover {
                background-color: #f5f7fa;
            }
        }
    }
}

.pagination-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
}

.no-data {
    height: calc(100vh - 200px);
    display: flex;
    align-items: center;
    justify-content: center;

    .no-data-inner {
        text-align: center;

        .tips {
            margin-top: 20px;
            color: #999;
        }

        .op-list {
            margin-top: 20px;
            display: flex;
            justify-content: center;
            align-items: center;

            .op-item {
                cursor: pointer;
                width: 100px;
                height: 100px;
                margin: 0px 10px;
                padding: 5px 0px;
                background: rgb(241, 241, 241);
            }
        }
    }
}